package com.qf.main.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author chengqiang
@Create 2024-01-19-19:55
@Description:
*/
/**
 * 角色权限关联表
 */
// @ApiModel(description="角色权限关联表")
@Data
@TableName(value = "role_operation_permission")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoleOperationPermission {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    // @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    // @ApiModelProperty(value="角色id")
    private Integer roleId;

    /**
     * 权限id
     */
    @TableField(value = "permission_id")
    // @ApiModelProperty(value="权限id")
    private Integer permissionId;

    public static final String COL_ID = "id";

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_PERMISSION_ID = "permission_id";
}
